package com.huilang1.demo1;

public class Bacon extends Garnish{
    public Bacon(FastFood fastFood) {
        super(fastFood, 5, "培根");
    }

    @Override
    public float cost() {
        return getPrice()+getFastFood().cost();
    }

    @Override
    public String getDesc() {
        return super.getDesc()+getFastFood().getDesc();
    }
}
